﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;

namespace PresentationLayer
{
    public partial class AddPeca : Form
    {
        public AddPeca()
        {
            InitializeComponent();
        }

        private void Adiciona_Click(object sender, EventArgs e)
        {
            this.textRefPec.SelectAll();
            this.textDesig.SelectAll();
            this.textPreco.SelectAll();
            if (PecaActions.AdicionaPeca(this.textRefPec.SelectedText, this.textDesig.SelectedText, this.textPreco.SelectedText))
                this.Close();
        }
    }
}
